package syntaxTree.stm;

import syntaxTree.exp.*;
import syntaxTree.id.*;
public class stmIdExpExp extends stm{		// -> id[exp] = exp
	id id;
	exp e1;
	exp e2;
	public stmIdExpExp(id id, exp e1, exp e2)
	{
		this.preS = new stmInit();
		this.id = id;
		this.e1 = e1;
		this.e2 = e2;		
	}
	public stmIdExpExp(stm s1, id id, exp e1, exp e2)
	{
		this.preS = s1;
		this.id = id;
		this.e1 = e1;
		this.e2 = e2;
	}
	public String toString()
	{
		return (id.toString()+'['+e1.toString()+']'+"="+e2.toString()+";\n");
	}
	public String toC()
	{
		return (id.toC()+'['+e1.toC()+']'+"="+e2.toC()+";\n");
	}
}
